import request from "@/utils/request";

//新增接口
export const addWorkshop = (data) => {
  return request({
    url: "base/workshop/addOrUpdate",
    method: "post",
    data,
  });
};

//查询接口
export const listWorkshop = (params) => {
  return request({
    url: "base/workshop/list",
    method: "get",
    params,
  });
};

export const delBatchWorkshop = (params, data) => {
  return request({
    url: "base/workshop/deleteByIds",
    method: "post",
    params,
    data,
  });
};
//数据回显接口
export const getWorkshop = (data) => {
  return request({
    url: `base/workshop/detail?id=${data}`,
    method: "get",
    data,
  });
};
